import { defineConfig } from 'unocss';
// import { presetUno, presetAttributify } from 'unocss'
// import tailwindcss from 'tailwindcss'
// import autoprefixer from 'autoprefixer'
export default defineConfig({
  root: true,
  // presets: [presetUno()],
  shortcuts: {
    'flex-center': 'flex justify-center items-center',
    自定义居中: 'center',
    container: ''
  },
  rules: [
    [
      'center',
      { width: '100%', height: '100%', display: 'flex', 'align-items': 'center', 'justify-content': 'center' }
    ],
    ['center-vertical', { width: '100%', display: 'flex' }],
    [
      'one-line',
      {
        overflow: 'hidden',
        'text-overflow': 'ellipsis',
        'white-space': 'nowrap'
      }
    ],
    ['full', { width: '100%', height: '100%' }],
    [
      'secondary-title', // 二级标题
      {
        'font-size': 'var(--g-font-size-medium)',
        color: 'var(--van-nav-bar-title-text-color)',
        'font-weight': 'var(--van-font-bold)'
      }
    ],
    [
      'flex-2',
      {
        flex: 2
      }
    ],
    [
      'flex-4',
      {
        flex: 4
      }
    ],
    [
      'flex-7',
      {
        flex: 7
      }
    ]
  ]
});
